<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/CSS/style.css" />
	<title>ViaggiDaSogno Homepage</title>
</h:head>
<h:body>
	<h1 class="home">ViaggiDaSogno</h1>
	<table align="center" class="home">
		<tr>
			<td rowspan="3"><img src="immagini/LogoTD.jpg" /></td>
			<td><p:button outcome="cliente/index" value="Accedi"
					icon="ui-icon-locked" /></td>
			<td align="right" valign="top" rowspan="3"><p:commandButton
					id="areaRiservata" value="Area riservata" type="button"
					icon="ui-icon-locked" /> <p:menu overlay="true"
					trigger="areaRiservata" my="right top" at="right bottom">
					<p:menuitem outcome="admin/index" value=" Area amministratore"
						icon="ui-icon-locked" />
					<p:menuitem outcome="agent/index" value=" Area dipendenti"
						icon="ui-icon-locked" />
				</p:menu></td>
		</tr>
		<tr>
			<td><p:button outcome="register" value="Registrati" /></td>
		</tr>
		<tr>
			<td><h:outputLabel id="msgRegSuccess"
					styleClass="ui-messages-info" value="Registrazione effettuata"
					rendered="#{param['regSuccess']}" /></td>
		</tr>
	</table>
</h:body>
</html>